home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Utilities / macam.0.8.4.dmg / macam sources / cameras / JFIFHeaderTemplate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-24  |  1.2 KB  |  40 lines

  1. /*
  2.  JFIFHeaderTemplate.h - Standard header for JPEG File Interchange Files
  3.  
  4.  Copyright (C) 2002 Matthias Krauss (macam@matthias-krauss.de)
  5.  
  6.  This program is free software; you can redistribute it and/or modify
  7.  it under the terms of the GNU General Public License as published by
  8.  the Free Software Foundation; either version 2 of the License, or
  9.  (at your option) any later version.
  10.  
  11.  This program is distributed in the hope that it will be useful,
  12.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  GNU General Public License for more details.
  15.  
  16.  You should have received a copy of the GNU General Public License
  17.  along with this program; if not, write to the Free Software
  18.  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20.  $Id: JFIFHeaderTemplate.h,v 1.1 2002/10/24 18:18:00 mattik Exp $
  21.  
  22.  */
  23.  
  24. #ifndef _JFIF_HEADER_TEMPLATE_
  25. #define _JFIF_HEADER_TEMPLATE_
  26.  
  27. #define JFIF_HEADER_LENGTH 623
  28. #define JFIF_QTABLE0_OFFSET 25
  29. #define JFIF_QTABLE1_OFFSET 94
  30. #define JFIF_HEIGHT_WIDTH_OFFSET 163
  31. #define JFIF_YUVTYPE_OFFSET 169
  32.  
  33. int ZigZagY(int table, int idx);
  34. int ZigZagUV(int table, int idx);
  35. int NoZigZagY(int table, int idx);
  36. int NoZigZagUV(int table, int idx);
  37.  
  38.  
  39. #endif
  40.